﻿/* Msg_FileDownload 文家下载结束消息。
	name: 下载的文件名
	ok  : 下载成功与否标志
	ldr : 下载的结果(loader)
*/
package events{
	import flash.display.Loader;
	
	public class Msg_FileDownload{
		public static const M_FILEDOWNLOAD:int = 2;
		public var msgid:int;
		public var url:String;
		public var ok:Boolean;
		public var loader:Loader;
		
		public function Msg_FileDownload() {}
		public static function createMessage(url:String, ok:Boolean,loader:Loader = null):Msg_FileDownload {
			var msg:Msg_FileDownload = new Msg_FileDownload();
			msg.msgid  = M_FILEDOWNLOAD;
			msg.url    = url;
			msg.ok     = ok;
			msg.loader = loader;
			return msg;
		}
	}
}